extends Node

var invetory : Dictionary = Dictionary()

signal invetory_changed

func add_collectable(collectable_name: String) -> void:
	invetory.get_or_add(collectable_name, 0)
	invetory[collectable_name] += 1
	invetory_changed.emit()

func get_collectable(collectable_name: String) -> int:
	return invetory.get_or_add(collectable_name, 0)
